/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.platform.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.medusa.gruul.common.data.base.BaseNoTenantEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 提现工单表结构
 * </p>
 *
 * @author whh
 * @since 2020-10-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_agent_withdraw_order")
@ApiModel(value = "AgentWithdrawOrder对象", description = "提现工单表结构")
public class AgentWithdrawOrder extends BaseNoTenantEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * t_agent_info 表中id
     */
    @ApiModelProperty(value = "t_agent_info 表中id")
    @TableField("agent_info_id")
    private Long agentInfoId;

    /**
     * 联系人
     */
    @ApiModelProperty(value = "代理联系人姓名")
    @TableField("link_name")
    private String linkName;

    /**
     * 账户
     */
    @ApiModelProperty(value = "代理账号账户")
    @TableField("account")
    private String account;

    @ApiModelProperty(value = "代理级别 1代理商2直属渠道商3间接渠道商")
    @TableField("agent_type")
    private Integer agentType;

    /**
     * 1代理商2直属渠道商3间接渠道商
     */
    @ApiModelProperty(value = "提现方式  1-微信  2-支付宝  3-银行卡")
    @TableField("type")
    private Integer type;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    @TableField("order_num")
    private String orderNum;

    /**
     * 提现姓名
     */
    @ApiModelProperty(value = "提现姓名")
    @TableField("name")
    private String name;

    /**
     * 开户行名称
     */
    @ApiModelProperty(value = "开户行名称")
    @TableField("bank_name")
    private String bankName;

    /**
     * 银行卡号或者支付宝微信账号
     */
    @ApiModelProperty(value = "银行卡号或者支付宝微信账号")
    @TableField("bank_num")
    private String bankNum;

    /**
     * 提现金额
     */
    @ApiModelProperty(value = "提现金额")
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 0:待审核 1:审核拒绝 2:已打款
     */
    @ApiModelProperty(value = "0:待审核 1:审核拒绝 2:已打款")
    @TableField("status")
    private Integer status;

}
